package system

import (
	"fmt"
	"github.com/gin-gonic/gin"
	v1 "server/api/v1"
	"server/middleware"
)

type InfoRouter struct{}

func (s *InfoRouter) InitInfoRouter(Router *gin.RouterGroup) {
	infoRouter := Router.Group("info").Use(middleware.OperationRecord())
	aa := Router.Group("info")
	baseApi := v1.ApiGroupApp.SystemApiGroup.BaseApi
	{

		infoRouter.POST("createArt", baseApi.CreateArt)
		infoRouter.PUT("setArtsInfo", baseApi.SetArtsInfo)
		infoRouter.DELETE("deleteArt", baseApi.DeleteArt)
	}
	{
		fmt.Println("---xx-----")
		aa.POST("getArtsList", baseApi.GetArtsList) // 获取自身信息

	}
}
